package com.ecoolex.chinadutyfree.retailer.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class CouponVerifyingConsumptionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public CouponVerifyingConsumptionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public CouponVerifyingConsumptionExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public CouponVerifyingConsumptionExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        CouponVerifyingConsumptionExample example = new CouponVerifyingConsumptionExample();
        return example.createCriteria();
    }

    public CouponVerifyingConsumptionExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public CouponVerifyingConsumptionExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public CouponVerifyingConsumptionExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public CouponVerifyingConsumptionExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public CouponVerifyingConsumptionExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("couponverifyingconsumption.Id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("couponverifyingconsumption.Id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.Id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.Id = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.Id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.Id <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("couponverifyingconsumption.Id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.Id > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.Id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.Id >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("couponverifyingconsumption.Id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.Id < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.Id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.Id <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("couponverifyingconsumption.Id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("couponverifyingconsumption.Id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("couponverifyingconsumption.Id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("couponverifyingconsumption.Id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCouponIdIsNull() {
            addCriterion("couponverifyingconsumption.CouponId is null");
            return (Criteria) this;
        }

        public Criteria andCouponIdIsNotNull() {
            addCriterion("couponverifyingconsumption.CouponId is not null");
            return (Criteria) this;
        }

        public Criteria andCouponIdEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.CouponId =", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CouponId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponIdNotEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.CouponId <>", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CouponId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponIdGreaterThan(Integer value) {
            addCriterion("couponverifyingconsumption.CouponId >", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdGreaterThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CouponId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.CouponId >=", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdGreaterThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CouponId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponIdLessThan(Integer value) {
            addCriterion("couponverifyingconsumption.CouponId <", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdLessThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CouponId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponIdLessThanOrEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.CouponId <=", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdLessThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CouponId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponIdIn(List<Integer> values) {
            addCriterion("couponverifyingconsumption.CouponId in", values, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotIn(List<Integer> values) {
            addCriterion("couponverifyingconsumption.CouponId not in", values, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdBetween(Integer value1, Integer value2) {
            addCriterion("couponverifyingconsumption.CouponId between", value1, value2, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotBetween(Integer value1, Integer value2) {
            addCriterion("couponverifyingconsumption.CouponId not between", value1, value2, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdIsNull() {
            addCriterion("couponverifyingconsumption.CouponClassId is null");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdIsNotNull() {
            addCriterion("couponverifyingconsumption.CouponClassId is not null");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.CouponClassId =", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CouponClassId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdNotEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.CouponClassId <>", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdNotEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CouponClassId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdGreaterThan(Integer value) {
            addCriterion("couponverifyingconsumption.CouponClassId >", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdGreaterThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CouponClassId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.CouponClassId >=", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdGreaterThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CouponClassId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdLessThan(Integer value) {
            addCriterion("couponverifyingconsumption.CouponClassId <", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdLessThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CouponClassId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdLessThanOrEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.CouponClassId <=", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdLessThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CouponClassId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdIn(List<Integer> values) {
            addCriterion("couponverifyingconsumption.CouponClassId in", values, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdNotIn(List<Integer> values) {
            addCriterion("couponverifyingconsumption.CouponClassId not in", values, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdBetween(Integer value1, Integer value2) {
            addCriterion("couponverifyingconsumption.CouponClassId between", value1, value2, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdNotBetween(Integer value1, Integer value2) {
            addCriterion("couponverifyingconsumption.CouponClassId not between", value1, value2, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("couponverifyingconsumption.UserId is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("couponverifyingconsumption.UserId is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.UserId =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UserId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.UserId <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UserId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("couponverifyingconsumption.UserId >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UserId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.UserId >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UserId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("couponverifyingconsumption.UserId <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UserId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("couponverifyingconsumption.UserId <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UserId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("couponverifyingconsumption.UserId in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("couponverifyingconsumption.UserId not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("couponverifyingconsumption.UserId between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("couponverifyingconsumption.UserId not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNull() {
            addCriterion("couponverifyingconsumption.OrderNo is null");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNotNull() {
            addCriterion("couponverifyingconsumption.OrderNo is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNoEqualTo(String value) {
            addCriterion("couponverifyingconsumption.OrderNo =", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.OrderNo = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderNoNotEqualTo(String value) {
            addCriterion("couponverifyingconsumption.OrderNo <>", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.OrderNo <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThan(String value) {
            addCriterion("couponverifyingconsumption.OrderNo >", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.OrderNo > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("couponverifyingconsumption.OrderNo >=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.OrderNo >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThan(String value) {
            addCriterion("couponverifyingconsumption.OrderNo <", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.OrderNo < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThanOrEqualTo(String value) {
            addCriterion("couponverifyingconsumption.OrderNo <=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.OrderNo <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderNoLike(String value) {
            addCriterion("couponverifyingconsumption.OrderNo like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotLike(String value) {
            addCriterion("couponverifyingconsumption.OrderNo not like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoIn(List<String> values) {
            addCriterion("couponverifyingconsumption.OrderNo in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotIn(List<String> values) {
            addCriterion("couponverifyingconsumption.OrderNo not in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoBetween(String value1, String value2) {
            addCriterion("couponverifyingconsumption.OrderNo between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotBetween(String value1, String value2) {
            addCriterion("couponverifyingconsumption.OrderNo not between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andRealPriceIsNull() {
            addCriterion("couponverifyingconsumption.RealPrice is null");
            return (Criteria) this;
        }

        public Criteria andRealPriceIsNotNull() {
            addCriterion("couponverifyingconsumption.RealPrice is not null");
            return (Criteria) this;
        }

        public Criteria andRealPriceEqualTo(BigDecimal value) {
            addCriterion("couponverifyingconsumption.RealPrice =", value, "realPrice");
            return (Criteria) this;
        }

        public Criteria andRealPriceEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.RealPrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRealPriceNotEqualTo(BigDecimal value) {
            addCriterion("couponverifyingconsumption.RealPrice <>", value, "realPrice");
            return (Criteria) this;
        }

        public Criteria andRealPriceNotEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.RealPrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRealPriceGreaterThan(BigDecimal value) {
            addCriterion("couponverifyingconsumption.RealPrice >", value, "realPrice");
            return (Criteria) this;
        }

        public Criteria andRealPriceGreaterThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.RealPrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRealPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("couponverifyingconsumption.RealPrice >=", value, "realPrice");
            return (Criteria) this;
        }

        public Criteria andRealPriceGreaterThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.RealPrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRealPriceLessThan(BigDecimal value) {
            addCriterion("couponverifyingconsumption.RealPrice <", value, "realPrice");
            return (Criteria) this;
        }

        public Criteria andRealPriceLessThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.RealPrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRealPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("couponverifyingconsumption.RealPrice <=", value, "realPrice");
            return (Criteria) this;
        }

        public Criteria andRealPriceLessThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.RealPrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRealPriceIn(List<BigDecimal> values) {
            addCriterion("couponverifyingconsumption.RealPrice in", values, "realPrice");
            return (Criteria) this;
        }

        public Criteria andRealPriceNotIn(List<BigDecimal> values) {
            addCriterion("couponverifyingconsumption.RealPrice not in", values, "realPrice");
            return (Criteria) this;
        }

        public Criteria andRealPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("couponverifyingconsumption.RealPrice between", value1, value2, "realPrice");
            return (Criteria) this;
        }

        public Criteria andRealPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("couponverifyingconsumption.RealPrice not between", value1, value2, "realPrice");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("couponverifyingconsumption.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("couponverifyingconsumption.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("couponverifyingconsumption.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("couponverifyingconsumption.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("couponverifyingconsumption.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("couponverifyingconsumption.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("couponverifyingconsumption.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("couponverifyingconsumption.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("couponverifyingconsumption.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("couponverifyingconsumption.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("couponverifyingconsumption.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("couponverifyingconsumption.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("couponverifyingconsumption.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("couponverifyingconsumption.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("couponverifyingconsumption.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("couponverifyingconsumption.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("couponverifyingconsumption.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("couponverifyingconsumption.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("couponverifyingconsumption.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("couponverifyingconsumption.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("couponverifyingconsumption.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("couponverifyingconsumption.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("couponverifyingconsumption.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("couponverifyingconsumption.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("couponverifyingconsumption.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("couponverifyingconsumption.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("couponverifyingconsumption.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("couponverifyingconsumption.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("couponverifyingconsumption.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("couponverifyingconsumption.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("couponverifyingconsumption.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("couponverifyingconsumption.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("couponverifyingconsumption.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("couponverifyingconsumption.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("couponverifyingconsumption.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("couponverifyingconsumption.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("couponverifyingconsumption.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("couponverifyingconsumption.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("couponverifyingconsumption.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("couponverifyingconsumption.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("couponverifyingconsumption.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("couponverifyingconsumption.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("couponverifyingconsumption.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("couponverifyingconsumption.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("couponverifyingconsumption.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("couponverifyingconsumption.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("couponverifyingconsumption.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("couponverifyingconsumption.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("couponverifyingconsumption.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("couponverifyingconsumption.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("couponverifyingconsumption.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("couponverifyingconsumption.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("couponverifyingconsumption.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("couponverifyingconsumption.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("couponverifyingconsumption.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("couponverifyingconsumption.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("couponverifyingconsumption.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("couponverifyingconsumption.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("couponverifyingconsumption.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("couponverifyingconsumption.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(CouponVerifyingConsumption.Column column) {
            addCriterion(new StringBuilder("couponverifyingconsumption.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("couponverifyingconsumption.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("couponverifyingconsumption.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("couponverifyingconsumption.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("couponverifyingconsumption.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private CouponVerifyingConsumptionExample example;

        protected Criteria(CouponVerifyingConsumptionExample example) {
            super();
            this.example = example;
        }

        public CouponVerifyingConsumptionExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(CouponVerifyingConsumption.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(CouponVerifyingConsumption.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.chinadutyfree.retailer.entity.CouponVerifyingConsumptionExample example);
    }
}